import 'package:enterprise_v6_app/generated/json/base/json_convert_content.dart';
import 'package:enterprise_v6_app/app/data/entities/application/standardiztion/standard_home_urgent_type_count_entity.dart';

StandardHomeUrgentTypeCountEntity $StandardHomeUrgentTypeCountEntityFromJson(Map<String, dynamic> json) {
  final StandardHomeUrgentTypeCountEntity standardHomeUrgentTypeCountEntity = StandardHomeUrgentTypeCountEntity();
  final int? comprehensiveNum = jsonConvert.convert<int>(json['comprehensiveNum']);
  if (comprehensiveNum != null) {
    standardHomeUrgentTypeCountEntity.comprehensiveNum = comprehensiveNum;
  }
  final int? majorNum = jsonConvert.convert<int>(json['majorNum']);
  if (majorNum != null) {
    standardHomeUrgentTypeCountEntity.majorNum = majorNum;
  }
  final int? sceneLiveNum = jsonConvert.convert<int>(json['sceneLiveNum']);
  if (sceneLiveNum != null) {
    standardHomeUrgentTypeCountEntity.sceneLiveNum = sceneLiveNum;
  }
  final int? specialNum = jsonConvert.convert<int>(json['specialNum']);
  if (specialNum != null) {
    standardHomeUrgentTypeCountEntity.specialNum = specialNum;
  }
  return standardHomeUrgentTypeCountEntity;
}

Map<String, dynamic> $StandardHomeUrgentTypeCountEntityToJson(StandardHomeUrgentTypeCountEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['comprehensiveNum'] = entity.comprehensiveNum;
  data['majorNum'] = entity.majorNum;
  data['sceneLiveNum'] = entity.sceneLiveNum;
  data['specialNum'] = entity.specialNum;
  return data;
}

extension StandardHomeUrgentTypeCountEntityExtension on StandardHomeUrgentTypeCountEntity {
  StandardHomeUrgentTypeCountEntity copyWith({
    int? comprehensiveNum,
    int? majorNum,
    int? sceneLiveNum,
    int? specialNum,
  }) {
    return StandardHomeUrgentTypeCountEntity()
      ..comprehensiveNum = comprehensiveNum ?? this.comprehensiveNum
      ..majorNum = majorNum ?? this.majorNum
      ..sceneLiveNum = sceneLiveNum ?? this.sceneLiveNum
      ..specialNum = specialNum ?? this.specialNum;
  }
}
